package mobileann.mafamily.utils.order;

import java.util.Comparator;
import java.util.Date;
import java.util.List;

import mobileann.mafamily.entity.AppInfo;

public class DateTimeComparator {

	public static class APP implements Comparator<List<AppInfo>> {
		public int compare(List<AppInfo> o1, List<AppInfo> o2) {
			Date date1 = new Date(o1.get(0).getDiffers());
			Date date2 = new Date(o2.get(0).getDiffers());
			if(date2.after(date1)) return 1;
			return -1;
		}
	}
	
}
